Git相关命令(三)(标签,检出,别名) |
您所在的位置:网站首页 › git 检出标签 › Git相关命令(三)(标签,检出,别名) |
版本补录 git commit --amend 标签(去区分各个版本) git tag -a v1.0.0 -m "new tag"(git tag -a tagname -m "submit message") git show v1.0.0(git tag tagname) git tag (获取所有标签) git tag -l "v*"(查看以v开头的tag) git tag -a tagname version(补录标签,git tag -a v0.0.0 version(本本信息) -m "补录tag") git tag -d tagname(删除标签) checkout 检出 git checkout (版本号)(根据版本号进行版本检出)--git reflog(查看以前所有log) git checkout (标签名)(根据标签名进行版本检出) git alias 别名 git config --global alias.st "status"(全局设置,给status取别名为st) git config --global alias.last "log -1 HEAD"(显示最近的一条log) git config --global alias.logol "log --pretty=oneline"(将每个版本用一行显示出来) |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |